package cn.woniu.ecommerceplatform.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Customer {
    private Integer id;     //会员id
    private String name;    //昵称
    private String level;   //会员等级
    private String phone;   //会员电话
    private Integer point;  //会员积分余额
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createTime;    //开卡时间

    private Double customNumber;   //消费次数,double方便排序
    private Double customMoney;     //消费总金额
    private String remark;      //备注

    private String account; //会员账户
    private String password;    //会员登录密码

    //退换货比例
    private Double reRatio;
    private Integer reNum;  //退换货次数
}
